def feedSvc = new feed.FeedService();

def userAgent = new feed.UserAgent()

def list = feedSvc.getFeedLocationList()
 
for (item in list) {
    println "${item.name} - ${item.link}"
    def link = item.link
    String response = userAgent.fetchUrl(link)
    (new File( feedSvc.fileForLink(link) )).write(response,"utf-8")
}
